import request from '@/utils/request'

// 获取验证码
export function getCodeImg() {
    return request({
        url: '/captchaImage',
        method: 'get',
        headers:{
            isToken : false
        },
        timeout: 20000
    })
}


//用户登录
export function login(username, password, code, uuid) {
    const data = {
        username, password, code, uuid
    }
    return request({
        url:"/login",
        method:"post",
        data:data,
        headers:{
            isToken: false,
            repeatSubmit: false //todo repeatSubmit 未理解
        }
    })
}